#pragma once
#include "GameDefine.h"
#include <list>
using namespace std;
class IComponent;
class GameObject
{
	protected:
	list<IComponent*> lComponents;	
public:
	IComponent* getComponentById(COMPONENT id);
	GameObject(void);
	~GameObject(void);
	void addComponent(IComponent* com);
	void removeComponent(IComponent* com);
	virtual void update();
	virtual void render();
	
};

